package jdbc;

import dao.TeacherDao;

/**
 * 在test1的基础上再次封装的测试
 */
public class Test2 {
    public static void main(String[] args) {
        BaseDao<TeacherDao> teacherDao = new BaseDao<TeacherDao>();
        String sql="select * from teacher where  id=?";
        TeacherDao bean = teacherDao.getBean(TeacherDao.class, sql, 1);
        System.out.println(bean);
    }
}
